package com.pan.api.config.impl;

import com.pan.api.config.ConfigUnit;
import com.pan.api.utils.PanApiDocXmlUtil;
import org.w3c.dom.Element;

final class TitleConfigUnit extends ConfigUnit<String> implements PanApiDocXmlUtil {
    public final static TitleConfigUnit INSTANCE = new TitleConfigUnit();


    @Override
    protected String createNewObjectInstance() {
        Element title = findFirst("base", "title");
        return title.getTextContent().strip();
    }
}
